import Vue from 'vue'
import App from './App.vue'
import router from './router'
import axios from 'axios'
import '../public/css.css'
import Vant from 'vant'
import 'vant/lib/index.css'
import VueAwesomeSwiper from 'vue-awesome-swiper'
import 'swiper/swiper-bundle.css'
import store from './store/index'
import moment from 'moment'
// 请求超时
axios.defaults.timeout = 30000
//  post 请求头
axios.defaults.headers.post['Content-Type'] = 'application/json'
Vue.use(Vant)
Vue.use(VueAwesomeSwiper /* { default options with global component } */)
Vue.prototype.$moment = moment
axios.defaults.baseURL = 'http://localhost:3000'
Vue.config.productionTip = false
Vue.prototype.http = axios
new Vue({
  store,
  router,
  render: (h) => h(App),
}).$mount('#app')
